import request from '@/utils/common/request'

/**
 * 登录接口
 * @param {*} data  account password identity
 * @returns
 */
export function loginApi(data) {
  return request({
    url: '/api/login',
    method: 'post',
    data
  })
}

/**
 *
 * @param {*} data  account password
 * @returns
 */
export function registerApi(data) {
  return request({
    url: '/api/register',
    method: 'post',
    data
  })
}

export function getUserInfoApi() {
  return request({
    url: '/info/userInfo',
    method: 'get'
  })
}

// 修改密码
export function editPasswordApi(data) {
  return request({
    url: '/api/editPassword',
    method: 'post',
    data
  })
}

/**
 * 企业注册
 */
export function enetrpriseApi(data) {
  return request({
    url: '/api/enetrprise',
    method: 'post',
    data
  })
}
/**
 * 更新职位状态
 */
export function updateJobStatusApi(data) {
  return request({
    url: '/info/updateJobStatus',
    method: 'post',
    data
  })
}
